Added global functions.