Redirecting to Dynamic memory allocation