Added convert function and removed unused files.