Use long to calculate a hard limitand fix the punctuation of log
messages