Some magic utils