Restored to current master file

Too many errors occurring so debugging required.