[960987] Added ctx as args to functions and prototype adding markers