Script improvements to use status events + expires param fix