private void RunTasks() 
	{
		// TODO Auto-generated method stub
		try
		{
			//System.out.println("In Run Tasks " + new Date().toString());
			if(this._states!=null && this._states.size()>0)
			{
				//System.out.println("Total no of states " + this._states.size());
				if(_currentState==null)
				{
					_currentState = this._states.remove(0);
					_startTime = new Date();
				}
				if(new Date().getTime()-_startTime.getTime()<= _duration *5 *1000)
					{
						//System.out.println("Start Time If + " + _startTime.toString());
						System.out.println(_currentState.get_stateName() +"Running");
						_arrayentclientConnector.SendMessage(_revealationMessageHandler.ConstructRevealationMessage(_currentState.get_wideData(), _currentState.get_revealationApi(), _currentState.get_revealationOpcode()));
					}
					else
					{
						_currentState = this._states.remove(0);
						_duration=_currentState.get_duration();
						_startTime= new Date();
						//System.out.println("Start Time Else + " + _startTime.toString());
					}
			}
		}
		catch(Exception exp)
		{
			exp.printStackTrace();
		}
	}