Changed compilation and added size as argument