Fixed code so hybrid works.