Changed intent's constructor so the class can now be found.