Adding updated code.

Adding updated code.