Modified to work with MonoDevelop