Setting up local and remote values for drawing.