Changed the implementation of config of head