Trying to apply a better code to gates - gates can't change their signal more than configured time.