Removed function redefinition, ignoring some wrong pylint errors.