Used decodeEvent instead of manually inserting code