Updated setLevel function to return this object.

Updated setLevel function to return this object.