Added maxOffsetBehind param.
Added .gitignore.