Switch to using FoxLib