Added Before method to command and app