Added basic functionality, easy conversion without control flow