Add minor extra scripting functionality