Everything is working according to specification. Basic error checking.