Update 2

Modified code from Windows