Changes to make phantom run