Added minor optimization - pause and resume called when the engines visibility is changed