Initial checkin of code found on google code