Refactored by deleting the nested acceptor object