Starting point for new function.