Code written in CLE lab.