Added tow functions