There was applause from the public gallery as Junaid Akram was told there was no alternative to custody.