Further updates to Code.R