Added code for method doLabel