Refactor methods.
Update Ruby to 2.1.3