Added support for Silverlight 4