Replaced final ref and removed trailing whitespace