Removed some repetition.