Updating the project file, also adding exception handling