Adding IP smear algorithm and updated others