Custom implemantation of Ghost.