Hearts manager Gary Locke was delighted with his side after they battled past Raith Rovers on penalties in the Scottish Communities League Cup.