v0.6.0. Error handling added.