Added sample middleware