Added helper methods to run effects
Added helper method to run functions as a coroutine or a regular method