Removed puts
Also save action_code* fields