Just tinkered with this, may actually help