Added bottomDetectionOffset option