To do: Run time nalysis