Maybe I don't understand the code, but shouldn't there be a *PREFIX* before calendar_calendar? (Here and several other places.)