Add snap directive