Reverted code to 1.0.2 version, which was working.