Streamlining and abstracting various functions.