Margin notifications

Implemented margin notifications.