This is a function which performs operations.