Added sample function.