Added global hooks