Tidied up code, removed unused subroutine launch_browser()