Adding check for successful injections