Fixed syntax errors. Added "action" to messages.