Add struct-specific behaviour