Fixed unchecked return values.