Valuable code snippets after research.