Adding command handler