Calendar bugs fixed. Performance optimized.