We should have a similar/identical functionality in the code base. Might be worth checking