Add missing lines of code