Defined OnRecieve for Security and updated docs