Added set_margins() method.