Fix the way parameters are read. use ctx.properties