Switched the code into strict mode.