Allan Macgregor, Director of engineering