Started work on exception handling.