Added support for reading in margin