Working on moving the common functions between programs to its own API file.