Working on one combined function.