Moving code around to organize functions better.