Copied and modified files from scribble/manual