Working on exception handling. WIP.