Adapted for use in State Android app