Updated with Alfie's dynamic instruction code