The unit that produces the error as well as my code.