But, How we can use it with optimize function?