Enabling another operation within def command