Adding custom scripts and crating op function