Fixed spacing, tabs to spaces, added Gif method (not tested).