First attempt at making common turtle-patching code