Code abstraction.
Merge pull request #1 from fibelatti/master

Code abstraction.