Add use strict to function