Move backstretch implementation to script