Slightly better way of getting size