Adjusted the multiplier on the piece size and reformatted some of the code