Use static variable for margin