Head code tweak

Signed-off-by: Thomas Sturge <tomsturge@googlemail.com>