Added static methods; updated error handling.