Add logic to new_app command