Added autoliveoak. the code is a bit complex, so there may be bugs. Let me know.