Wrote some bullshit to avoid leaning on the fl package.