Updated to not use the sample code.