Cleaned up code in tangent computing module