Made margins changeable in export