Add missing bit of code