Added log resuming. now this program can be used for actually logging