Added consume functionality.