Refactored large functions and added status messages as logs are created and removed