This should probably not be here. But at this point is fine. I'll factor it out later.