@Override
	public int loop()
	{
		if (Game.isLoggedIn())
		{
			if (Variables.initialized && Variables.started)
			{
				frmYSmelting.setVisible(false);
				
				if (jobContainer != null)
				{
					final Node job = jobContainer.state();
					if (job != null)
					{
						jobContainer.set(job);
						getContainer().submit(job);
						job.join();
					}
				}
				
				if (Walking.getEnergy() > 40 && !Walking.isRunEnabled())
				{
					Walking.setRun(true);
					System.out.println("set run");
				}
			}
		}
		
		return Random.nextInt(100, 500);
	}