Added the option to input Start or End