Updated code with new API changes. Changed installation procedure to patch only.