I Added a median function.