Resources handling.