Add option to prevent writing in global object