Memory!

Added actual memory statements to createLink