The core utilities functions. Author: Siriwat Kasamwattanarote Licensed by Alpha Studio