Redid methods to be compatible with .NET MF