Added log transfer functions from Andrew Tridgell