Note to self: This function is no longer being used, remove.