Porting computed.rs