Refactored interface to pushAttributes and refactored recordAction