How to add extra time before or after events (buffers)