Implemented assignment functions.