Removed usage of pad, added invoke methods with start index and count