Rmoved the errors regarding incompatible pointer types being passed