Sorted Step function in a different way. jumpdelayed and jump variable are no longer used