Added external hooks