Remove unused variable; Remove redundant decimal point in $maxTimestamp