new declaration of functions added
Updated.