Call both the functions inside a function.