Adding new functions to WARO module.
Making state checking functions smaller.
Adding state checking functions to module.