Fix ports.
Add option memory type.