Added functions to Turns.js