Getting a weird error that looks like a function is being called too early. Investigating.