Added function for parsing status text