Removed default values for read-only parameters
Corrected resource agent state check when returning from direct access