Added apply for constructor of actors