Added three method to invoke user, anonymous or runtime function.