Removed old instruction api and finished lua commands