Hook for backward compatibility