Modified extraction of key from post functionality to successfully extract more reliably.