Better errors
Error logging stuff, sort out a null thingie.