Are these inside the function because there is a circular import issue?