Tested with static allocation