Stay away from the e39 540i. I had one and there were motor problems, sorry I can remember the details but if you google the M62 motor the early version you will find what I'm talking about. There is a site that you can go to to look up defects and recalls and this issue was listed on the site. The thing is you either have the problem or you don't. If I remember correctly BMW fixed the issue in the 2003 and up version. If you buy a 528 or 530 you should be good to go. If you get a 1997-2002 5 Series let me know, I have a set of manuals you can have for $50 (Bentley Service and Electrical). 500 plus pages of BMW knowledge in each manual.