First faulty stab at line_locals; needs formatting fixes, amongst others