Adds dirList and turn function.