Autopower public code