Fixed some formatting, made a constant into a variable