Added market tab. Added time function.