Code optimatization regarding pauzes