Add more functions and constructors for instruction handling