Makes methods callback-able.