Added the ability to run methods synchronously.
Useful for debugging.