public function approximateRuntime($command) {
		$tasks = $this->Task->find('list', array(
			'conditions' => array(
				'command' => $command,
				'status' => TaskType::FINISHED,
				'runtime >' => 0
			),
			'fields' => array('id', 'runtime'),
			'limit' => Configure::read('Task.approximateLimit'),
			'order' => array(
				'id' => 'DESC'
			)
		));
		
		return $tasks ? (int)round(array_sum($tasks) / count($tasks)) : 0;
	}