FINALLY got it working the way I want it to