Added returns keyword
Unified changes from rmelick and reved version to 1.4