Add some utilities functions