I inserted Capt Branchflower's code into my files