Functions to create and process objects