Added option to disable overlay