Removed duplicate from middleware