Initial stuff; mostly ok but some hints are still not implemented as warnings.