Commit- Code modified according to the Frudino Library