Added more global functions