Added project file and fixed bug.