Added variable for source field value instead of calling getSource