Support for virtual attributes 

#1235