Added functions for calculations with open systems