Removed overhead from enqueue function