Added support for source size measurement