Sources clone from http://amalgam.codeplex.com/