This could be maybe better, otherways we must add this to every function returing access and event