Add an option for top-k