Making common code android compatible.