Refactored to use strict mode.