This function should be renamed to `init`. And we only need to call to it when initializing.