Initial function.