The Centre has told the Supreme Court that executing a condemned prisoner by hanging was a viable method as lethal injection was not workable while hearing a petition which sought setting aside of the legal provision that a death row convict would only be hanged to death.