Initial commit based on code written by Robert Ahs.