Moved Exception to end of function or else everything else was unreachable