Try to simplify penalty calculation