Naive implementation of onepw

Starting point for the onepw API. Functional but not efficient.