Added generic getters and setters to pass objects to/from the Worker with optional callbacks