Modified the cosine main file to stop unnecessary printing.