Updated missing lines of code