Add some utility function