Stopped errors!

Need to fix the error flag though