Refactored and cleaned up some methods in the Push command.