Added Code from Notepad ++