add step variable for buffer

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>