Added create and destroy functions.