Refactored the way of setting default and stepvalues in indexes