Added private helper function, minimizing code.