Initial implementation to support dynamic memory later