Added method to receive a return value from a invoked method