Fixed typename error.
Added new setKey function.