Fix CSS, error handling, and sync calls