Compatibility function