Add init/exit function, fops struct.