Modified to 4 space indents for PEP8 consistancy.