Adding error switch to debug this bitch.