Two-year upgrade to pave the way for longer trains and more passengers