Fixed global functions