Implement log and negative numbers