Added code to remove "action" key