Added initial implementation of choosing tasks