Added turn function