Working on exception handling.