Fixed stupid errors.

Also removed console.logs.