Streamlining exception function