Add size weighting to the script
am: dd49278c4a

Change-Id: I0fa3d073e82c887d1ee5fc38797b10515802f9fe