Now it works everywhere - fixed bug with status variable