profile_hash param and type missing here and also after line 161.