Only retrieve project once, fixes #343