Library helper functions for cube framework