Version without using form_state for querying available resources