Low-priority items: 1. The status determination (on, off, error) should really be the responsibility of the HDAPS code. Currently, the plugin handles all of the "on" states. An HdapsState structure might be appropriate. 2. Replace FILENAME_MAX with something that won't cause problems on Unices without path length limits.