Warnings fixed mostly.