Switch from sleep to curl polling for app