Added synchronous function support.
Updated to v0.3.0