Modify once behaviour to be able to use off on the function