Moved IR contrast functions to sandbox