Code for common tasks (all languages)