Hardware and Graphics Interaction code