Init some codes