Updated code style; removed unused parameter from the rendering command
Added isInScope request check