Updated version, now works with BEF.

(cheers gurmil)
Signed-off-by: Rowtree <Rowtree@hotmai.co.uk>