After hours of struggle, I finally finished the project.