Added step support

Remove the empty lines at the beginning and end of this function.