Fixed the problem with events taking their entire past into account when adjusting the offset. Only the relevant part of the past is considered now.