Small Changes

The functions will only run if the location == 0