Refacored to pyremix