Saved initial margin to data so we can call the function multiple times without margins being doubled.