Added toggle function prototype.