Added syntax check for set_action