Made changes to validate code.