Added missing functions to fix orm install