Finished ATD section, made ATD function properly.