Updates to driver code and added start of logging