Begin gif direction modularization