Added missing method.
Removed several compilation errors.