Updated API.
Version bumped to 0.5.0.