Remove redundant Block declaration from struct
Wrap UPDATE_POWER macro in do while loop
Replace strcmp with strcasecmp for case insensitive string comparisons