     {:ok, %{metrics: metrics, functions: %{}}}
   end
 
-  def handle_call({:register, fun_name, fun}, _from, state) do
+  def handle_call({:register, fun_name, fun, threshold_config}, _from, state) do
   end
 
   def handle_call({:run, fun_name}, _from, state) do

  end

  defp mark_call_ok(state, fun_name, delta) do
    fun = get_in(state, [:functions, fun_name])
    case fun do
      nil -> state
      _ -> state
    end
  end

  defp mark_call_error(state, fun_name, delta) do
    fun = get_in(state, [:functions, fun_name])
    case fun do
      nil -> state
      _ -> state
    end
  end
end

  end

  defp get_time do
    Timex.Time.now(:secs)
  end

  defp get_time_msecs do
    Timex.Time.now(:msecs)
  end

  defp get_runner(fun_name) do
