Finished main functionallity.

TODO: Use proper ration in Compress process