Cleaned up code to determine Handbook URLs