Creating new function.