Updated code, made mem ftprnt smaller