Refactored Code, Deleted prints for Debugging. Code have ERROR (max #of browser)