Adding a command.after_prepare event