Added function, CLeaned Codes