Functionalize margin