Also need to check for null for last commit!
And use the correct variable name...