Better snippet, fixed deprecation