Partial implementation of accept - bug