Removed redundant shifts.
Forgot to update maxSamples.
Ran inspection.