Merge "Add functions to analyse the composition of payload."