Removed many warnings with UNUSED(X) macro