Modified MARGIN variable for new planning limit

@taldcroft @jeanconn