Added clear hook