Updating code for 2013