Finished logging flow (it could still be optimized to remove refreshes). Removed hard coded values and added config file.