Added method to pass data with command handlers.

Added a method to return data to the command handler.