Authentication mechanism added.