Initial commit of both functions based on example.