Adding inflags and fixing room leaving bug