Updated a bit of code