Adds returnToHead configuration option