Add function bodies

Add function bodies