Change back methods into functions.