Added retrieve last five minutes functionality