Fixed types for mode data. Logging php errors.