Fixed the interface to comply with the old C# one.