Applying mean stack