Encapsulating global functions