Finally got the foundation bar working! And much cleaner too.