Generated factory methods.
Started generating Binary instance.
Fix build.