Updated so that logs are now recorded and displayed