Added methods and code to interpreter structure