Splitting up methods for reuseability.