Added optimal allocation to the pladypos driver.